@extends('layouts.default')

@section('title')
{{{ $lab->title }}}_@parent
@stop

@section('description')
{{{ $lab->excerpt }}}
@stop

@section('content')

<div class="col-md-9 topics-show main-col">

  <!-- Lab Detial -->
  <div class="topic panel panel-default">
    <div class="infos panel-heading">

      <div class="pull-right avatar_large">
        <a href="{{ route('users.show', $lab->user->id) }}">
          <img src="{{ $lab->user->present()->gravatar }}" style="width:65px; height:65px;" class="img-thumbnail avatar" />
        </a>
      </div>

      <h1 class="panel-title topic-title">{{{ $lab->title }}}</h1>

      @include('labs.partials.meta')
    </div>

    <div class="content-body entry-content panel-body">

      @include('labs.partials.body', array('body' => $lab->body))

      @include('labs.partials.ribbon')
    </div>

    @include('labs.partials.lab_operate')
  </div>

  <div class="panel panel-default">
    @include('labs.partials.infonav', ['current' => 'report_members'])
  </div>

  <div class="replies panel panel-default list-panel replies-index">
    <div class="panel-heading">
      <div class="total">{{ lang('Total Report Members Count') }}: <b>{{ $report_members->getTotal() }}</b> </div>
    </div>

    <div class="panel-body">

      @if (count($report_members))
        @include('labs.partials.report_members')
      @else
         <div class="empty-block">{{ lang('Dont have any report member yet') }}~~</div>
      @endif

      <!-- Pager -->
      <div class="pull-right" style="padding-right:20px">
        {{ $report_members->appends(Request::except('page'))->links(); }}
      </div>
    </div>
  </div>

</div>

@include('layouts.partials.sidebar')

@stop
